import http from '@/utils/http'


/** @desc 获取爬取库列表 */
// export function getKeywordList(data) {
//   return http.post('manager/keywords/index', data)
// }

/** @desc 获取爬取源列表 */
export function getScrapySource(data) {
  return http.post('manager/scrapy/sites', data)
}

/** @desc 新增爬取源 */
export function addScrapySource(data) {
  return http.post('manager/scrapy/site_add', data)
}

/** @desc 爬取源详情 */
export function scrapySourceDetail(data) {
  return http.post('manager/scrapy/site_detail', data)
}

/** @desc 爬取源编辑 */
export function scrapySourceEdit(data) {
  return http.post('manager/scrapy/category_edit', data)
}

/** @desc 爬取源删除 */
export function scrapySourceDelete(data) {
  return http.post('manager/scrapy/site_delete', data)
}

/** @desc 获取爬取库列表 */
export function getscrapylibrary(data) {
  return http.post('manager/scrapy/crawling_library', data)
}
